/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Peds Clin Practice Setting</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S10953 (C-0-T12206-A17660-A19450-A10588-S10589-S10953-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getPedsClinPracticeSetting()
 * @model extendedMetaData="name='PedsClinPracticeSetting'"
 * @generated
 */
public enum PedsClinPracticeSetting implements Enumerator {
	/**
	 * The '<em><b>PEDC</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PEDC_VALUE
	 * @generated
	 * @ordered
	 */
	PEDC(0, "PEDC", "PEDC"),

	/**
	 * The '<em><b>PEDCARD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PEDCARD_VALUE
	 * @generated
	 * @ordered
	 */
	PEDCARD(1, "PEDCARD", "PEDCARD"),

	/**
	 * The '<em><b>PEDE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PEDE_VALUE
	 * @generated
	 * @ordered
	 */
	PEDE(2, "PEDE", "PEDE"),

	/**
	 * The '<em><b>PEDGI</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PEDGI_VALUE
	 * @generated
	 * @ordered
	 */
	PEDGI(3, "PEDGI", "PEDGI"),

	/**
	 * The '<em><b>PEDHEM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PEDHEM_VALUE
	 * @generated
	 * @ordered
	 */
	PEDHEM(4, "PEDHEM", "PEDHEM"),

	/**
	 * The '<em><b>PEDID</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PEDID_VALUE
	 * @generated
	 * @ordered
	 */
	PEDID(5, "PEDID", "PEDID"),

	/**
	 * The '<em><b>PEDNEPH</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PEDNEPH_VALUE
	 * @generated
	 * @ordered
	 */
	PEDNEPH(6, "PEDNEPH", "PEDNEPH"),

	/**
	 * The '<em><b>PEDHO</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PEDHO_VALUE
	 * @generated
	 * @ordered
	 */
	PEDHO(7, "PEDHO", "PEDHO"),

	/**
	 * The '<em><b>PEDRHEUM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PEDRHEUM_VALUE
	 * @generated
	 * @ordered
	 */
	PEDRHEUM(8, "PEDRHEUM", "PEDRHEUM");

	/**
	 * The '<em><b>PEDC</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PEDC</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PEDC
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PEDC_VALUE = 0;

	/**
	 * The '<em><b>PEDCARD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PEDCARD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PEDCARD
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PEDCARD_VALUE = 1;

	/**
	 * The '<em><b>PEDE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PEDE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PEDE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PEDE_VALUE = 2;

	/**
	 * The '<em><b>PEDGI</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PEDGI</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PEDGI
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PEDGI_VALUE = 3;

	/**
	 * The '<em><b>PEDHEM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PEDHEM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PEDHEM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PEDHEM_VALUE = 4;

	/**
	 * The '<em><b>PEDID</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PEDID</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PEDID
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PEDID_VALUE = 5;

	/**
	 * The '<em><b>PEDNEPH</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PEDNEPH</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PEDNEPH
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PEDNEPH_VALUE = 6;

	/**
	 * The '<em><b>PEDHO</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PEDHO</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PEDHO
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PEDHO_VALUE = 7;

	/**
	 * The '<em><b>PEDRHEUM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PEDRHEUM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PEDRHEUM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PEDRHEUM_VALUE = 8;

	/**
	 * An array of all the '<em><b>Peds Clin Practice Setting</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final PedsClinPracticeSetting[] VALUES_ARRAY =
		new PedsClinPracticeSetting[] {
			PEDC,
			PEDCARD,
			PEDE,
			PEDGI,
			PEDHEM,
			PEDID,
			PEDNEPH,
			PEDHO,
			PEDRHEUM,
		};

	/**
	 * A public read-only list of all the '<em><b>Peds Clin Practice Setting</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<PedsClinPracticeSetting> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Peds Clin Practice Setting</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PedsClinPracticeSetting get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			PedsClinPracticeSetting result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Peds Clin Practice Setting</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PedsClinPracticeSetting getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			PedsClinPracticeSetting result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Peds Clin Practice Setting</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PedsClinPracticeSetting get(int value) {
		switch (value) {
			case PEDC_VALUE: return PEDC;
			case PEDCARD_VALUE: return PEDCARD;
			case PEDE_VALUE: return PEDE;
			case PEDGI_VALUE: return PEDGI;
			case PEDHEM_VALUE: return PEDHEM;
			case PEDID_VALUE: return PEDID;
			case PEDNEPH_VALUE: return PEDNEPH;
			case PEDHO_VALUE: return PEDHO;
			case PEDRHEUM_VALUE: return PEDRHEUM;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private PedsClinPracticeSetting(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //PedsClinPracticeSetting
